package com.smartcampusbackend.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;
import java.math.BigDecimal;

@Data
@TableName("course")
public class Course {
    @TableId
    private String id;
    private String name;
    private String description;
    private Integer credits;
    private Integer capacity;
    private Integer currentStudents;
    private String semester;
    private String teacherId;
    private String schedule;
    private String location;
    private String prerequisite;
    private Long departmentId;
    private Long majorId;
    private BigDecimal regularGradeRatio;
    private BigDecimal examGradeRatio;
    private Integer totalHours;
    private String type;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "Course{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", credits=" + credits +
                ", capacity=" + capacity +
                ", currentStudents=" + currentStudents +
                ", semester='" + semester + '\'' +
                ", teacherId='" + teacherId + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
} 